package com.kcs.dc.service.impl;

public class WsInquirePortTypeProxy implements com.kcs.dc.service.impl.WsInquirePortType {
  private String _endpoint = null;
  private com.kcs.dc.service.impl.WsInquirePortType wsInquirePortType = null;
  
  public WsInquirePortTypeProxy() {
    _initWsInquirePortTypeProxy();
  }
  
  public WsInquirePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initWsInquirePortTypeProxy();
  }
  
  private void _initWsInquirePortTypeProxy() {
    try {
      wsInquirePortType = (new com.kcs.dc.service.impl.WsInquire_ServiceLocator()).getwsInquireHttpSoap11Endpoint();
      if (wsInquirePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wsInquirePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wsInquirePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wsInquirePortType != null)
      ((javax.xml.rpc.Stub)wsInquirePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.kcs.dc.service.impl.WsInquirePortType getWsInquirePortType() {
    if (wsInquirePortType == null)
      _initWsInquirePortTypeProxy();
    return wsInquirePortType;
  }
  
  public com.kcs.dc.service.bean.response.xsd.WsInquiryResponse wsInquire(com.kcs.dc.service.bean.request.xsd.WsInquiryRequest request) throws java.rmi.RemoteException{
    if (wsInquirePortType == null)
      _initWsInquirePortTypeProxy();
    return wsInquirePortType.wsInquire(request);
  }
  
  
}